﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta name="viewport" content="width=device-width" />
    <title>MyAudit</title>
    
    <link rel="stylesheet" type="text/css" href="~/H-ui/static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="~/H-ui/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="~/H-ui/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="~/H-ui/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="~/H-ui/static/h-ui.admin/css/style.css" />
    <link href="~/css/img.css" rel="stylesheet" />
    <link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet">
    <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
    <link href="~/bootstrap-star-rating-master/css/star-rating.css" rel="stylesheet" type="text/css" />
    <script src="~/bootstrap-star-rating-master/js/star-rating.js" type="text/javascript"></script>

</head>
<body class="bb1">
    <div align=center class="d1">
        <marquee style="FONT-SIZE: 35pt; WIDTH: 400px; FILTER: shadow(color=#AF0530); LINE-HEIGHT:15pt; FONT-FAMILY: 隶书; HEIGHT: 80px" scrollamount=6>
            <h2 style="margin-top:0px;text-align:center"><font color=#f90b46>我的维修 </font></h2>
        </marquee>
    </div>
    <div class="page-container">
        <div class="text-c">
            @*<form action="/Audit/Search" method="post">
                报修名称：<input type="text" placeholder="请输入报修名称" name="RepairsName" />
                报修时间：
                <input type="text" name="txtDate" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd', maxDate: '#F{$dp.$D(\'datemin\')||\'%y-%M-%d \'}' })" id="datemin" class="input-text Wdate" style="width:120px;">

                <input type="submit" value="查询" />
            </form>*@
            <table class="table  table-hover table-bordered" id="tab1" style="margin-top:50px;width:1000px; text-align:center;margin-left:50px;">
                <tr>
                    <th>编号</th>
                    <th>车厢</th>
                    <th>报修名称</th>
                    <th>报修时间</th>
                    <th>提交人</th>
                    <th>维修状态</th>
                    <th>维修评星</th>
                    <th hidden ="hidden"></th>
                    <th>操作</th>
                </tr>
                @foreach (var m in ViewBag.list)
                 {
                    <tr>
                        <th>@m.Item1</th>
                        <th>@m.Item2</th>
                        <th>@m.Item3</th>
                        <th>@m.Item4</th>
                        <th>@m.Item5</th>
                        <th>@(m.Item6==1?"等待维修":m.Item6==2?"维修中":"维修完成")</th>
                        <th>
                            <input id="shu" type="number" class="rating" min="0" max="5" step="0.5" data-size="small"
                                   data-symbol="&#xe005;" data-default-caption="{rating} hearts" data-star-captions="{}" value="@m.Item7.Item1" readonly>   
                        </th>
                        <th hidden="hidden">@m.Item7.Item2</th>
                        <th>@Html.Raw(m.Item6 == 1 ? "<a href=\"/Maintain/UpdateMaintain/?id="+m.Item7.Item2+"&mid="+m.Item1+"\">维修</a>" : m.Item6 == 2 ? "<a href=\"/Maintain/UpdateMaintain/?id="+m.Item7.Item2+"&mid="+m.Item1+"\">维修中</a>" : "维修已完成") </th>
                    </tr>
                }
            </table>
            <!--分页-->
            <nav class=" text-center">
                <ul id="pagination"></ul>
            </nav>
            <script src="~/Pageer/esimakin-twbs-pagination/jquery.twbsPagination.min.js"></script>
            <script type="text/javascript" src="~/H-ui/lib/My97DatePicker/4.8/WdatePicker.js"></script>
            <script type="text/javascript" src="~/H-ui/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
            <script type="text/javascript" src="~/H-ui/lib/laypage/1.2/laypage.js"></script>
        </div>
    </div>
    <script>
        $(function () {
            $('#pagination').twbsPagination({
                totalPages: '@ViewBag.TotalPage',
                visiblePages:3,
                first: "首页",
                prev: "上一页",
                next: "下一页",
                last: "尾页",
                href: '/Maintain/MyIndent?PageIdenx={{pageNumber}}',
                hrefVariable: '{{pageNumber}}'
            });
        })
  

    </script>

</body>
</html>


